gtk4.git
8 years agoappchooserwidget: Don't limit application list unconditionally
Florian Müllner [Sun, 22 Oct 2017 22:18:19 +0000 (00:18 +0200)]
appchooserwidget: Don't limit application list unconditionally

As documented, GtkAppChooser is "typically [used] for the purpose of
opening a file". However given that applications that support neither
opening files nor URLs are filtered out, the chooser is not actual
useful for any other (atypical) usage. Change that by only applying
the filtering if a content-type was set, and use the full unfiltered
list otherwise.

https://bugzilla.gnome.org/show_bug.cgi?id=789327

8 years agoactionable: Allow all detailed action name formats
Christian Persch [Wed, 11 Oct 2017 18:43:19 +0000 (20:43 +0200)]
actionable: Allow all detailed action name formats

Use g_action_parse_detailed_name() to enable use of this API
for actions with non-string parameter.

https://bugzilla.gnome.org/show_bug.cgi?id=788841

8 years agoprinting: Install printbackends
Marek Kasik [Thu, 19 Oct 2017 11:59:58 +0000 (13:59 +0200)]
printing: Install printbackends

Add "install : true" for each printbackend so that they are installed.

https://bugzilla.gnome.org/show_bug.cgi?id=789185

8 years agowayland: Don't spew warnings for blank cursors
Matthias Clasen [Wed, 12 Apr 2017 17:56:49 +0000 (13:56 -0400)]
wayland: Don't spew warnings for blank cursors

We were unnecessarily spewing warnings when blank cursors
were getting a new scale set. Standardize on "none" as the
name for blank cursors, and avoid the warning.

https://bugzilla.gnome.org/show_bug.cgi?id=775217

8 years agoicon-browser: Make non-symbolic icons visible again
Matthias Clasen [Thu, 26 Oct 2017 03:58:09 +0000 (23:58 -0400)]
icon-browser: Make non-symbolic icons visible again

The commit that added the scalable size to the details dialog
inadvertedly caused all icons to be hidden. No need to do that.

8 years agoDrop gtk_cell_renderer_get_size
Matthias Clasen [Thu, 26 Oct 2017 02:27:19 +0000 (22:27 -0400)]
Drop gtk_cell_renderer_get_size

This function has been deprecated since 3.0, time to drop it.

8 years agoDrop unused includes of gtkrender.h
Matthias Clasen [Thu, 26 Oct 2017 01:46:46 +0000 (21:46 -0400)]
Drop unused includes of gtkrender.h

We don't use the gtk_render apis internally anymore.
Drop these includes so it is clear where the remaining
uses are.

8 years agoSome minimal theme fixes for focus drawing
Matthias Clasen [Wed, 25 Oct 2017 22:35:32 +0000 (18:35 -0400)]
Some minimal theme fixes for focus drawing

We don't want focus rectangles everywhere, so set them up
explicitly for the widgets where we want them, and only
if focus(visible) is set.

8 years agoRemove a shortcut in gtk_widget_set_focus_child
Matthias Clasen [Wed, 25 Oct 2017 22:26:06 +0000 (18:26 -0400)]
Remove a shortcut in gtk_widget_set_focus_child

Since focus can now be represented by more than one state,
just looking at the focus_child is no longer sufficient - we
may fail to propagate :focus(visible) if we do so. For now,
just remove the shortcut and always do the work.

8 years agoAlways draw outline
Matthias Clasen [Tue, 29 Aug 2017 02:27:07 +0000 (22:27 -0400)]
Always draw outline

We can now control with CSS where there the outline
is drawn.

8 years agoSupport the new state in CSS selectors
Matthias Clasen [Tue, 29 Aug 2017 02:26:30 +0000 (22:26 -0400)]
Support the new state in CSS selectors

Make :focus(visible) match the new state.

8 years agoSet the new state flag
Matthias Clasen [Tue, 29 Aug 2017 02:25:06 +0000 (22:25 -0400)]
Set the new state flag

For now, we only set the new visible focus state
on the focus widget, when we have visible focus.
Later on, we will allow setting it on other widgets.

8 years agoAdd a state flag for visible focus
Matthias Clasen [Tue, 29 Aug 2017 02:22:08 +0000 (22:22 -0400)]
Add a state flag for visible focus

The new flag is called GTK_STATE_FLAGS_FOCUS_VISIBLE.

8 years agogdk: Clear GL context when window is withdrawn
Andrea Azzarone [Wed, 25 Oct 2017 13:37:36 +0000 (09:37 -0400)]
gdk: Clear GL context when window is withdrawn

Some clients (e.g. gnome-online-accounts) quickly unmap and map
a window. With some backends the backend surface will be replaced
causing the application to crash because the GL context is still
using the old surface. Clearing the GL context when a window is
withdrawn fixes this.

https://bugzilla.gnome.org/show_bug.cgi?id=789141

8 years agoAdwaita: Remove focus outlines from scrollbars and scales
Timm Bäder [Wed, 25 Oct 2017 07:34:52 +0000 (09:34 +0200)]
Adwaita: Remove focus outlines from scrollbars and scales

gtk3 didn't have focus outlines for these, so remove them for now.

Sorry lapo.

8 years agogtk/gtkcssenumvalue.c: Deal with __builtin_popcount on MSVC
Chun-wei Fan [Tue, 24 Oct 2017 08:16:08 +0000 (16:16 +0800)]
gtk/gtkcssenumvalue.c: Deal with __builtin_popcount on MSVC

__builtin_popcount is a GCCism that is used to count the number of bits
involved, which means any non GCC/CLang compilers won't like the code,
meaning that on MSVC builds we must implement it ourselves.

We first use __cpuid() to check whether the CPU supports the popcount
instruction, if it does, we use the __popcnt intrinsic, otherwise
(untested, since I don't have a system that does not have the
instruction), we use the suggested hacks at
http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agotestsuite/gsk/test-render-nodes.c: Include <stdlib.h>
Chun-wei Fan [Tue, 24 Oct 2017 08:14:43 +0000 (16:14 +0800)]
testsuite/gsk/test-render-nodes.c: Include <stdlib.h>

This is so that the compiler won't complain about our use of exit()

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agogtk/gtkwin32theme.c: Include gdk/gdkprivate.h
Chun-wei Fan [Tue, 24 Oct 2017 08:12:58 +0000 (16:12 +0800)]
gtk/gtkwin32theme.c: Include gdk/gdkprivate.h

We still need to access the GdkEvent structure here directly, as using
the GdkEvent getters is likely not worth the trouble involved.

Please see Emmanuele's comment (#97) of the following bug URL.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agogdk/win32/gdkwindow-win32.c: Fix gdk_win32_window_set_icon_list()
Chun-wei Fan [Tue, 24 Oct 2017 08:09:17 +0000 (16:09 +0800)]
gdk/win32/gdkwindow-win32.c: Fix gdk_win32_window_set_icon_list()

The list of surfaces passed into the function may be NULL, so don't try
to initialize the surfaces if it is so, to avoid a crash.

Also, remove the cast to GdkPixbuf* for getting surfaces->data, as we
are already using a cairo_surface_t*.

https://bugzilla.gnome.org/show_bug?id=773299

8 years agomodules/input/gtkimcontextime.c: Fix build
Chun-wei Fan [Tue, 24 Oct 2017 08:06:32 +0000 (16:06 +0800)]
modules/input/gtkimcontextime.c: Fix build

The GdkEvent structure became opaque, so we need to update the code so
that we use the getters and setters here.

https://bugzilla.gnome.org/show_bug?id=773299

8 years agoFix build
Benjamin Otte [Tue, 24 Oct 2017 16:26:08 +0000 (18:26 +0200)]
Fix build

Don't do two things at once and forget to run ninja before pushing.

8 years agoAdd default return values to switch statements
Benjamin Otte [Tue, 24 Oct 2017 16:13:45 +0000 (18:13 +0200)]
Add default return values to switch statements

We are using g_assert_not_reached() without doing anything, assuming it
aborts the program. In release builds however, it is ignored.

8 years agoAdd a return value
Emmanuele Bassi [Tue, 24 Oct 2017 15:58:06 +0000 (16:58 +0100)]
Add a return value

When building with G_DISABLE_ASSERT, the g_assert_not_reached()
statement won't do anything, and we're going to fall through, and the
compiler will emit a warning that we're not returning anything from a
function with a return value.

8 years agoinspector: Show more render node details
Matthias Clasen [Tue, 24 Oct 2017 13:20:00 +0000 (15:20 +0200)]
inspector: Show more render node details

Should clip and container node details.

8 years agogdk/win32/gdkwindow-win32.c: Fix build
Chun-wei Fan [Tue, 24 Oct 2017 05:55:36 +0000 (13:55 +0800)]
gdk/win32/gdkwindow-win32.c: Fix build

Make up for the missed commas...

8 years agovulkan: No need to redefine gl_PerVertex
Benjamin Otte [Mon, 23 Oct 2017 23:28:46 +0000 (01:28 +0200)]
vulkan: No need to redefine gl_PerVertex

The compiler has those predefined, so use them.

8 years agovulkan: Delete unused shaders
Benjamin Otte [Mon, 23 Oct 2017 23:20:50 +0000 (01:20 +0200)]
vulkan: Delete unused shaders

These have been renamed to .frag/.vert, apparently the originals weren't
deleted.

8 years agoMention pixbufs in the migration guide
Matthias Clasen [Mon, 23 Oct 2017 16:33:15 +0000 (18:33 +0200)]
Mention pixbufs in the migration guide

They are being phased out.

8 years agoDrop all uses of GdkPixbufAnimation in the gtk APIs
Alexander Larsson [Mon, 23 Oct 2017 14:39:44 +0000 (16:39 +0200)]
Drop all uses of GdkPixbufAnimation in the gtk APIs

These are basically animated gifs, and don't fit well in how
modern things animate.

8 years agobuild: Warn about ignored qualifiers
Benjamin Otte [Mon, 23 Oct 2017 14:28:38 +0000 (16:28 +0200)]
build: Warn about ignored qualifiers

https://bugzilla.gnome.org/show_bug.cgi?id=789351

8 years agoRemove unnecessary const
Emmanuele Bassi [Mon, 23 Oct 2017 14:23:09 +0000 (15:23 +0100)]
Remove unnecessary const

We return a scalar value, so we don't need it to be constant.

https://bugzilla.gnome.org/show_bug.cgi?id=789351

8 years agoGtkIconHelper: Remove unused code
Alexander Larsson [Mon, 23 Oct 2017 13:34:17 +0000 (15:34 +0200)]
GtkIconHelper: Remove unused code

8 years agoDrop pixbuf support in IconHelper and ImageDefinition
Alexander Larsson [Mon, 23 Oct 2017 13:25:46 +0000 (15:25 +0200)]
Drop pixbuf support in IconHelper and ImageDefinition

These are no longer used, instead we always covert to surface as
early as possible and drop the pixbuf.

This means we never store both the pixbuf and the surface at
for any longer time, which is wasteful. Also, its one step further
to drop GdkPixbufs from generic use in our APIs.

8 years agoGtkDragSource: Don't use gtk_image_definition_new_pixbuf
Alexander Larsson [Mon, 23 Oct 2017 13:15:35 +0000 (15:15 +0200)]
GtkDragSource: Don't use gtk_image_definition_new_pixbuf

We want to get rid of pixbuf image definitions.

Long term this should probably be gtk_drag_source_set_icon_surface instead.

8 years agoCellRendererPixbuf: Never store pixbufs
Alexander Larsson [Mon, 23 Oct 2017 13:03:31 +0000 (15:03 +0200)]
CellRendererPixbuf: Never store pixbufs

Rather than store the pixbufs as themselves we immediately convert
them to surfaces. In the uncommon case that a pixbuf is read back
from the renderer we generate a new one from the surface data.

8 years agoGtkImage: Drop support for storing pixbufs
Alexander Larsson [Mon, 23 Oct 2017 12:47:50 +0000 (14:47 +0200)]
GtkImage: Drop support for storing pixbufs

This drops the pixbuf property and the pixbuf getters. We keep
gtk_image_new/set_from_pixbuf, but these are small helpers that
immediately convert to a surface, and there is no way to later get
back the pixbuf you passed in.

The from file/resource codepaths are also changed to load a surface
instead of a pixbuf.

8 years agowindow: Use correct destroy notify for icon list
Timm Bäder [Mon, 23 Oct 2017 12:43:47 +0000 (14:43 +0200)]
window: Use correct destroy notify for icon list

The list contains cairo_surface_t instances now, not GdkPixbuf anymore.

8 years agoicontheme: Silence some compiler warnings
Timm Bäder [Mon, 23 Oct 2017 11:39:22 +0000 (13:39 +0200)]
icontheme: Silence some compiler warnings

8 years agodnd: Add more surface apis
Matthias Clasen [Mon, 23 Oct 2017 12:16:31 +0000 (14:16 +0200)]
dnd: Add more surface apis

The new function, gtk_drag_source_set_icon_surface, is for setting
a drag source icon without using GdkPixbuf.

8 years agoGtkWindow/GdkWindow: Finish converting icons to surfaces
Alexander Larsson [Mon, 23 Oct 2017 11:43:50 +0000 (13:43 +0200)]
GtkWindow/GdkWindow: Finish converting icons to surfaces

There were some parts left, for instance gdk_window_set_icon_list.

8 years agoGtkEntry: Use surfaces, not pixbufs for bitmapped icons
Alexander Larsson [Mon, 23 Oct 2017 10:49:42 +0000 (12:49 +0200)]
GtkEntry: Use surfaces, not pixbufs for bitmapped icons

8 years agoaboutdialog: Use set_boxed on surface
Alexander Larsson [Mon, 23 Oct 2017 10:48:11 +0000 (12:48 +0200)]
aboutdialog: Use set_boxed on surface

cairo_surface_t is boxed, not a GObject.

8 years agoinspector: show color matrix node details
Matthias Clasen [Mon, 23 Oct 2017 09:24:49 +0000 (11:24 +0200)]
inspector: show color matrix node details

Show the matrix and the offset for color matrix nodes.

8 years agoUse a color matrix for symbolic icons
Matthias Clasen [Mon, 23 Oct 2017 07:08:25 +0000 (09:08 +0200)]
Use a color matrix for symbolic icons

The recoloring of symbolic icons is just a color matrix
operation.

8 years agoAllow passing a color matrix when rendering icons
Matthias Clasen [Mon, 23 Oct 2017 09:42:23 +0000 (11:42 +0200)]
Allow passing a color matrix when rendering icons

This will be used for symbolic icons.
Update all callers.

8 years agoicon helper: Use cached textures
Matthias Clasen [Mon, 23 Oct 2017 05:53:09 +0000 (07:53 +0200)]
icon helper: Use cached textures

Use a cached texture for themed icons if we can.
Currently, we only do this for non-symbolic icons.

8 years agoicon theme: Add a texture cache
Matthias Clasen [Mon, 23 Oct 2017 05:51:45 +0000 (07:51 +0200)]
icon theme: Add a texture cache

Return cached textures for icons. This lets us avoid duplicate
texture uploads for icons whose surfaces we already cache.

8 years agorecent manager: Remove dead code
Matthias Clasen [Mon, 23 Oct 2017 06:04:46 +0000 (08:04 +0200)]
recent manager: Remove dead code

These functions are no longer used.

8 years agotestsuite: Disable vulkan tests when vulkan isn't available
Timm Bäder [Sun, 22 Oct 2017 14:58:53 +0000 (16:58 +0200)]
testsuite: Disable vulkan tests when vulkan isn't available

They are always going to fail in that case anyway.

8 years agoadwaita: Remove focus outlines from textviews
Timm Bäder [Sun, 22 Oct 2017 13:26:16 +0000 (15:26 +0200)]
adwaita: Remove focus outlines from textviews

8 years agowindow: Correct the property definition for icon
Matthias Clasen [Mon, 23 Oct 2017 05:39:12 +0000 (07:39 +0200)]
window: Correct the property definition for icon

cairo surfaces are boxed types, not objects.

8 years agoabout dialog: Correct the property definition for logo
Matthias Clasen [Mon, 23 Oct 2017 05:38:36 +0000 (07:38 +0200)]
about dialog: Correct the property definition for logo

cairo surfaces are boxed types, not objects.

8 years agoDrop gtk_drag_set_icon_pixbuf from the docs too
Matthias Clasen [Mon, 23 Oct 2017 04:21:34 +0000 (06:21 +0200)]
Drop gtk_drag_set_icon_pixbuf from the docs too

It no longer exists.

8 years agoDrop gtk_recent_info_get_icon
Matthias Clasen [Mon, 23 Oct 2017 04:20:08 +0000 (06:20 +0200)]
Drop gtk_recent_info_get_icon

We are moving away from pixbuf-based apis.
Use gtk_recent_info_get_gicon instead.

8 years agoAdd gtk_image_get_surface to the docs
Matthias Clasen [Mon, 23 Oct 2017 03:59:30 +0000 (05:59 +0200)]
Add gtk_image_get_surface to the docs

This was missed.

8 years agoDocument new clipboard apis
Matthias Clasen [Mon, 23 Oct 2017 03:53:23 +0000 (05:53 +0200)]
Document new clipboard apis

These are surface-based replacements for some pixbuf apis.

8 years agoDocument new selection apis
Matthias Clasen [Mon, 23 Oct 2017 03:46:58 +0000 (05:46 +0200)]
Document new selection apis

Document the new cairo surface-based apis for GtkSelection.

8 years agoDrop gtk_drag_set_icon_pixbuf
Matthias Clasen [Mon, 23 Oct 2017 03:43:05 +0000 (05:43 +0200)]
Drop gtk_drag_set_icon_pixbuf

We are moving away from GdkPixbuf in the api.
Use surface-based replacements instead.

8 years agoUse surface apis in testnotebookdnd
Matthias Clasen [Mon, 23 Oct 2017 03:42:24 +0000 (05:42 +0200)]
Use surface apis in testnotebookdnd

Stop using gtk_drag_set_icon_pixbuf.
This api is going away.

8 years agotests: Use surface apis in testimage
Matthias Clasen [Mon, 23 Oct 2017 03:41:29 +0000 (05:41 +0200)]
tests: Use surface apis in testimage

Stop using gtk_drag_set_icon_pixbuf.
This api is going away.

8 years agogtk-demo: Use surface apis in the clipboard demo
Matthias Clasen [Mon, 23 Oct 2017 03:40:20 +0000 (05:40 +0200)]
gtk-demo: Use surface apis in the clipboard demo

Stop using gtk_drag_set_icon_pixbuf.
This api is going away.

8 years agotests: Convert dnd test to surface apis
Matthias Clasen [Mon, 23 Oct 2017 03:27:01 +0000 (05:27 +0200)]
tests: Convert dnd test to surface apis

Stop using gtk_drag_set_icon_pixbuf in testdnd2.
This api is going away.

8 years agoselection: Add another surface api
Matthias Clasen [Mon, 23 Oct 2017 03:22:28 +0000 (05:22 +0200)]
selection: Add another surface api

Of course, we need a getter too.

8 years agoGtkAboutDialog: Use surfaces for logo
Alexander Larsson [Sun, 22 Oct 2017 21:03:19 +0000 (23:03 +0200)]
GtkAboutDialog: Use surfaces for logo

8 years agogtk_image_get_surface: Add docs
Alexander Larsson [Sun, 22 Oct 2017 20:57:55 +0000 (22:57 +0200)]
gtk_image_get_surface: Add docs

8 years agoGtkWindow: Use cairo_surface_t for icons
Alexander Larsson [Sun, 22 Oct 2017 20:57:21 +0000 (22:57 +0200)]
GtkWindow: Use cairo_surface_t for icons

8 years agorecent chooser: Don't use pixbuf based apis
Matthias Clasen [Sun, 22 Oct 2017 20:21:21 +0000 (22:21 +0200)]
recent chooser: Don't use pixbuf based apis

Use gtk_drag_set_icon_surface here.

8 years agorecent manager: always return a GIcon
Matthias Clasen [Sun, 22 Oct 2017 20:20:12 +0000 (22:20 +0200)]
recent manager: always return a GIcon

Make gtk_recent_info_get_gicon return a useful GIcon in
all cases.

8 years agoselection: Add surface based apis
Matthias Clasen [Sun, 22 Oct 2017 20:19:31 +0000 (22:19 +0200)]
selection: Add surface based apis

Add gtk_selection_data_set_surface.

8 years agoimage: Add surface based apis
Matthias Clasen [Sun, 22 Oct 2017 20:18:32 +0000 (22:18 +0200)]
image: Add surface based apis

Add gtk_image_get_surface.

8 years agoclipboard: Add surface apis
Matthias Clasen [Sun, 22 Oct 2017 20:17:43 +0000 (22:17 +0200)]
clipboard: Add surface apis

Add gtk_clipboard_set_surface and gtk_clipboard_wait_for_surface.

8 years agoFix compiler warnings
Matthias Clasen [Sat, 21 Oct 2017 13:17:36 +0000 (15:17 +0200)]
Fix compiler warnings

I overlooked these when I recently did the render node api changes.

8 years agooverlay: Remove unused NULL-check
Timm Bäder [Fri, 20 Oct 2017 13:12:28 +0000 (15:12 +0200)]
overlay: Remove unused NULL-check

8 years agowindow: Make sure we query the window size before size-allocate'ing
Timm Bäder [Fri, 20 Oct 2017 08:58:31 +0000 (10:58 +0200)]
window: Make sure we query the window size before size-allocate'ing

8 years agogdkevents: Remove gtk_widget_set_events mention
Timm Bäder [Thu, 19 Oct 2017 14:58:19 +0000 (16:58 +0200)]
gdkevents: Remove gtk_widget_set_events mention

Doesn't exist anymore.

8 years agorenderborder: Don't snapshot all-invisible borders
Timm Bäder [Thu, 19 Oct 2017 13:41:20 +0000 (15:41 +0200)]
renderborder: Don't snapshot all-invisible borders

If all of the borders have an alpha of 0, we don't need to snapshot
anything.

8 years agorenderbackground: Minimize style lookups
Timm Bäder [Thu, 19 Oct 2017 13:22:00 +0000 (15:22 +0200)]
renderbackground: Minimize style lookups

Move the early returns up so we don't look up all those css values for
no reason.

8 years agowidget: Remove outdated comment on get_allocation
Timm Bäder [Wed, 18 Oct 2017 08:39:44 +0000 (10:39 +0200)]
widget: Remove outdated comment on get_allocation

The allocation passed to gtk_widget_size_allocate can be retrieved these
days, using gtk_widget_get_allocated_size.

8 years agowindow: Remove dead code
Matthias Clasen [Fri, 20 Oct 2017 12:43:11 +0000 (14:43 +0200)]
window: Remove dead code

GtkWindow never has a parent widget, so we never need to create
a child window for it.

8 years agoRemove some outdated information
Matthias Clasen [Fri, 20 Oct 2017 09:21:05 +0000 (11:21 +0200)]
Remove some outdated information

Render nodes don't have transformations, currently.
Only transform nodes do.

8 years agodocs: Add render node api
Matthias Clasen [Fri, 20 Oct 2017 07:11:48 +0000 (09:11 +0200)]
docs: Add render node api

8 years agoTweak transform node apis
Matthias Clasen [Fri, 20 Oct 2017 07:31:14 +0000 (09:31 +0200)]
Tweak transform node apis

Rename the getter to follow the peek naming scheme.

Update all callers.

8 years agogsk: Tweak text node apis
Matthias Clasen [Fri, 20 Oct 2017 07:12:19 +0000 (09:12 +0200)]
gsk: Tweak text node apis

Rename getters to follow the peek naming pattern.

Update all callers.

8 years agogsk: Tweak cairo node apis
Matthias Clasen [Fri, 20 Oct 2017 06:52:02 +0000 (08:52 +0200)]
gsk: Tweak cairo node apis

Rename the surface getter to peek, following other render
node getters, and make the surface-based constructor private,
since it is not something we want to encourage.

Update all callers.

8 years agoMake render node getter public
Matthias Clasen [Fri, 20 Oct 2017 06:06:20 +0000 (08:06 +0200)]
Make render node getter public

Keeping these private does not really buy us anything.

8 years agoBump version to 3.93
Matthias Clasen [Fri, 20 Oct 2017 06:05:46 +0000 (08:05 +0200)]
Bump version to 3.93

This lets us add new API without deprecation warnings.

8 years agobuild: Fix gtk_tools array expansion
Emmanuele Bassi [Fri, 20 Oct 2017 10:22:45 +0000 (11:22 +0100)]
build: Fix gtk_tools array expansion

The gtk_tools variable is an array of arrays; adding a new element
requires to maintain the same type, or we'll get a build failure when
we try to extract the newly added element.

8 years agoMeson: Support Windows builds
Chun-wei Fan [Tue, 1 Aug 2017 08:49:08 +0000 (16:49 +0800)]
Meson: Support Windows builds

Add the necessary machinery into the Meson definition files so that we
can build for Windows.

Since we don't have Wayland or X support for our use case here, disable
them once we know that we are building for Windows, as they are
(otherwise) enabled by default, and enable the items that need to be
built for Windows builds.

Exclude gtk4-launch from Windows builds as that is something that
is not supported on Windows.

As we won't have gio-unix on Windows, and PangoFT2 is optional, don't use
fallbacks for them when we are on Windows (but do use fallbacks for
gio-win32, as it will be used).

Also, clean up meson.build a bit as we can just force-include
msvc_recommended_pragmas.h from GLib since we depend on GLib, and so we
can handle these warnings from msvc_recommended_pragmas.h instead.

https://bugzilla.gnome.org/show_bug.cgi?id=785210

8 years agoRevert "gdk/wayland: Avoid idempotent wl_subsurface.set_position calls"
Michael Catanzaro [Fri, 20 Oct 2017 00:52:11 +0000 (19:52 -0500)]
Revert "gdk/wayland: Avoid idempotent wl_subsurface.set_position calls"

This reverts commit 1607f8c4c64b95329f0c02fde7070c35b2bfb2ad.

https://bugzilla.gnome.org/show_bug.cgi?id=784314

8 years agoicon-browser: Remove GtkEventBox from .ui file
Carlos Garnacho [Thu, 19 Oct 2017 14:13:47 +0000 (16:13 +0200)]
icon-browser: Remove GtkEventBox from .ui file

The patch adding scalable icons' info was forward ported too much as-is
to master. The event box is both unused and unnecessary here.

8 years agoAvoid super-luminous pixels
Matthias Clasen [Thu, 19 Oct 2017 13:15:13 +0000 (15:15 +0200)]
Avoid super-luminous pixels

The color-matrix shader was creating pixels with r,g,b > a in
some cases, which leads to unexpected test failures. In particular
this as visible the opacity render node test for opacity 0.

8 years agogdk: add accessor for GdkEventOwnerChange::reason
Marc-Antoine Perennou [Thu, 19 Oct 2017 12:22:23 +0000 (14:22 +0200)]
gdk: add accessor for GdkEventOwnerChange::reason

https://bugzilla.gnome.org/show_bug.cgi?id=789198

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
8 years agoAdd 3.94 version macros
Matthias Clasen [Thu, 19 Oct 2017 10:18:12 +0000 (12:18 +0200)]
Add 3.94 version macros

8 years agoOptimize away trivial opacities
Matthias Clasen [Thu, 19 Oct 2017 10:01:02 +0000 (12:01 +0200)]
Optimize away trivial opacities

No need to go color matrix on an opacity of 0 or 1.

8 years agoGtkGestureZoom: Don't leak the list of sequences
Debarshi Ray [Wed, 18 Oct 2017 14:44:33 +0000 (16:44 +0200)]
GtkGestureZoom: Don't leak the list of sequences

https://bugzilla.gnome.org/show_bug.cgi?id=789149

8 years agoAdd a test for opacity render nodes
Matthias Clasen [Tue, 17 Oct 2017 17:22:27 +0000 (01:22 +0800)]
Add a test for opacity render nodes

This test currently fails with the Vulkan renderer, despite
having its own reference image.

8 years ago3.92.1
Matthias Clasen [Wed, 18 Oct 2017 21:11:07 +0000 (23:11 +0200)]
3.92.1

Change the project name back to gtk+ to avoid trouble with
tarball names not matching ftpadmin expectations.

8 years ago3.92.0
Matthias Clasen [Wed, 18 Oct 2017 16:29:53 +0000 (18:29 +0200)]
3.92.0

8 years agoFix tools test
Matthias Clasen [Wed, 18 Oct 2017 16:46:12 +0000 (18:46 +0200)]
Fix tools test

8 years agoAdd a forgotten file
Matthias Clasen [Wed, 18 Oct 2017 16:35:34 +0000 (18:35 +0200)]
Add a forgotten file